package user

import (
	"elegantGo/chapter17/oo/primitive"
)

const (
	CategoryNormal             = 0
	CategoryVipMonthly         = 10
	CategoryVipYearly          = 20
	CategoryVipSuperYearlyUser = 30
	CategoryVipTwoYearlyUser   = 40
)

type VipResourceDiscounter struct {
}

func (o *VipResourceDiscounter) Discount() float64 {
	return 0.9
}

type Level struct {
	primitive.Int
}

type Nickname struct {
	primitive.String
}

type Category struct {
	primitive.Int
}

type VipResourceDownloadTimes struct {
	primitive.Int
}
